package com.icinfo.cloud.provider.punish.common.publicsecurityentrust.model;


import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 公安委托执法-文书号段信息
 * @TableName case_public_security_entrust_document_number
 */
@Table(name ="upcase.case_public_security_entrust_document_number")
@Data
@Accessors(chain = true)
public class CasePublicSecurityEntrustDocumentNumber implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 部门编码
     */
    @Column(name = "org_code")
    private String orgCode;


    /**
     * 号段开始
     */
    @Column(name = "number_start")
    private String numberStart;

    /**
     * 号段结束
     */
    @Column(name = "number_end")
    private String numberEnd;

    /**
     * 号段数=号段截止-号段开始+1
     */
    @Column(name = "number_segment")
    private Integer numberSegment;


    /**
     * 是否删除，0 未删除；1已删除
     */
    @Column(name = "is_deleted")
    private String isDeleted;

    /**
     * 添加时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 添加人id
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 添加人
     */
    @Column(name = "create_user")
    private String createUser;


    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 修改用户id
     */
    @Column(name = "update_user_id")
    private String updateUserId;

    /**
     * 修改用户
     */
    @Column(name = "update_user")
    private String updateUser;

    /**
     * 区域编码
     */
    @Column(name = "area_code")
    private String areaCode;

    /**
     * 剩余号段预警阈值
     */
    @Column(name = "alarm_number")
    private Integer alarmNumber;

    /**
     * 执法机构代码
     */
    @Column(name = "enforcement_code")
    private String enforcementCode;



}